package com.xmut.mall.store.feign;

import com.xmut.mall.store.annotation.CheckJwt;
import com.xmut.mall.store.utils.RespBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("mall-member")
public interface MemberFeignService {

    /**
     * 根据id获取用户收货地址
     * @param id
     * @return
     */
    /**
     * 获取用户的默认收货地址
     * @param id
     * @return
     */
    @CheckJwt
    @GetMapping("/member/memberreceiveaddress/getDefaultReceiveAddressById/{id}")
    RespBean getDefaultReceiveAddressById(@PathVariable Long id);
}
